package com.hm.cloud.nacos.feign;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Coder编程
 * @Title: TestFeignController
 * @ProjectName spring-cloud-alibaba
 * @Description: TODO
 * @date 2021/10/1415:00
 */

@RequestMapping("feign/")
@RestController
public class TestFeignController {

    @Autowired
    private TestFeignClient testFeignClient;

    @GetMapping("test/{id}")
    public Integer testFeign(@PathVariable("id") Integer id){
        return testFeignClient.testFeign(id);
    }
}
